#pragma once
#include "SnRender.h"
#include "base/shader.h"
#include <memory>
#include <vector>
namespace Sivin {
  class SquareRender : public SnRender {

  public:
    explicit SquareRender();
    ~SquareRender();

  public:
    void onGLInit() override;
    void onRender() override;

  private:
    std::unique_ptr<Shader> mShader{nullptr};
    std::vector<float> mVertexData;
    std::vector<unsigned int> mElementIndexArray;
    GLuint mVAO;
  };
}// namespace Sivin